package com.hspedu.seckill.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hspedu.seckill.pojo.Goods;
import com.hspedu.seckill.vo.GoodsVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {


    /**
     * 查询商品列表
     */
    List<GoodsVo> findGoodsVo();


    /**
     * 根据goodsId查询商品
     */
    GoodsVo findGoodsVoByGoodsId(Long goodsId);
}
